<template>
  <div>
    <banner></banner>
    <div class="questionsContent">
      <header>当前第7题/共8题</header>
      <p>7.你是应届/非应届？（单选）？</p>
      <radio-group class="radioGroup"
        @change="getRadioValue"
      >
        <label
          @click="reasonMsg(index)"
          class="radio"
          v-for="(item,index) in subData"
          :index="index"
          :key="index"
        >
          <radio :value="item.value" />
          <span>{{item.value}}</span>
        </label>
      </radio-group>
      <button @click="PlusIndex" type="primary">下一题</button>
    </div>
  </div>
</template>

<script>
import banner from "@/components/questionBanner.vue";
import Vue from "vue"
export default {
  data() {
    return {
      subData: [{ value: "A.应届" }, { value: "B.非应届" }],
      currentIndex: 0,
      haschange: -1
    };
  },
  components: {
    banner
  },
  methods: {
    PlusIndex() {
      // if (this.haschange == -1) {
      //   wx.showToast({
      //     title: "不能为空",
      //     duration: 2000,
      //     icon: "none"
      //   });
      // } else
      wx.navigateTo({ url: "../questionEight/main" });
    },
           getRadioValue(e) {
      Vue.prototype.isfresh = e.mp.detail.value;
    }
  },
  created() {},
  onLoad() {}
};
</script>

<style scoped>
</style>
